/* 全局样式 */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f7f6;
    margin: 20px;
    padding: 0px;
}

.title {
    font-size: xx-large;
    font-weight: bold;
    color: #3b82f6;
    margin: 20px 0 30px;
    text-align: center;
}

.subtitle {
    font-size: medium;
    display: flex;
    justify-content: center;
    /* 两列等宽 */
}



#patientID {
    font-size: medium;
}

.input-config {
    display: flex;
    text-align: center;
    flex-direction: column;
}

.input-card {
    text-align: center;
    width: 100%;
    height: auto;
    padding: 2px;
    margin: 2px;

}


.app-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: calc(100vh - 100px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.sidebar {
    width: 100px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color: #f0f2f5;
    /* 添加阴影 */
    padding: 20px;
    /* display: flex; */
    justify-content: center;
    gap: 10px;
}

.selection {
    height: 20px;
}

.selection,
.input-config {
    background: #f9f9f9;
    /* 背景色 */
    border: 1px solid #ddd;
    /* 边框 */
    border-radius: 8px;
    /* 圆角 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* 阴影 */
    padding: 10px;
    /* 内边距 */
    transition: background 0.3s, transform 0.2s;
    cursor: pointer;
    /* 鼠标样式 */
    margin-bottom: 10px;
    /* 间距 */
}

.selection:hover,
.input-config:hover {
    background: #e6f7ff;
    /* 悬停时的背景色 */
    transform: translateY(-2px);
    /* 悬停时的浮动效果 */
}

.selection:active {
    background: #bae7ff;
    /* 点击时的背景色 */
    transform: translateY(0);
    /* 点击时复位 */
}

.selection span,
.input-config span {
    display: block;
    font-size: 16px;
    /* 文字大小 */
    font-weight: bold;
    /* 加粗 */
    color: #333;
    /* 文字颜色 */
}

.selection small,
.input-config small {
    display: block;
    font-size: 12px;
    /* 辅助文字大小 */
    color: #666;
    /* 辅助文字颜色 */
    margin-top: 4px;
    /* 间距 */
}

#wssip {
    width: 70%;
    border: 1px solid #ccc;
    /* 边框颜色 */
    border-radius: 5px;
    /* 圆角 */
    box-sizing: border-box;
}

#varHot {
    width: 95%;
    height: auto;
    border: 1px solid #ccc;
    /* 边框颜色 */
    border-radius: 5px;
    resize: none;
    /* 圆角 */
    box-sizing: border-box;
}

#mic_mode_div {
    display: block;
}

#rec_mode_div {
    display: none;
}

#varArea {
    flex-grow: 1;
    width: 100%;
    height: 120px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.div_class_buttons {
    display: flex;
    justify-content: center;
    padding: 2px;
    margin: 2px;
}

#audio_record {
    width: 100%;
    height: 30px;
    margin-bottom: 10px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    color: white;
    background-color: #3b82f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.submit-btn:disabled {
    background-color: #d1d5db;
    cursor: not-allowed;
}

.submit-btn:hover:not(:disabled) {
    background-color: #2563eb;
}

.content {
    flex: 2;
    padding: 20px;
    /* 内边距 */
    border-radius: 15px;
    /* 圆角半径 */
    /* background: white; */
    /* 背景色 */
    border: 3px solid transparent;
    /* 边框初始颜色 */
    background-clip: padding-box;
    /* 确保渐变边框外的内容不被覆盖 */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    /* 添加阴影 */

    /* 渐变边框 */
    position: relative;
    background-color: #f9fafb;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.markdown-output {
    flex-grow: 1;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.editable-content {
    width: 100%;
    max-width: 600px;
    padding: 2px;
    font-size: 16px;
    background-color: #f9fafb;
    border: none;
    /* 移除默认的边框 */
    resize: none;
    overflow-y: auto;
}

.editable-content:focus {
    border-bottom: 2px solid #5f605f;
    /* 聚焦时改变下划线颜色 */
    outline: none;
    /* 移除默认的外边框 */
}

.editable-content::placeholder {
    color: #aaa;
}

.feedback-button {
    width: 50%;
    margin: 0 auto;
    padding: 14px;
    font-size: 18px;
    color: white;
    background-color: #3b82f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.feedback-button:disabled {
    background-color: #d1d5db;
    cursor: not-allowed;
}

.feedback-button:hover:not(:disabled) {
    background-color: #2563eb;
}

/* AI助手样式 */
.ai-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.ai-icon img {
    width: 30px;
    height: 30px;
}

.ai-assistant {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    max-height: 400px;
    display: none;
    flex-direction: column;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.ai-header {
    background-color: #3b82f6;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.ai-content {
    flex: 1;
    padding: 10px 15px;
    overflow-y: auto;
    font-size: 14px;
}

.ai-input {
    display: flex;
    border-top: 1px solid #ddd;
}

.ai-input input {
    flex-grow: 1;
    padding: 10px;
    border: none;
    font-size: 14px;
    outline: none;
}

.ai-input button {
    padding: 10px 15px;
    background-color: #3b82f6;
    color: white;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

.ai-input button:hover {
    background-color: #2563eb;
}

/* 箭头按钮样式 */
/* 箭头按钮样式 */
.arrow-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #007bff;
    color: white;
    border: none;
    width: 80px;
    /* 宽度 */
    height: 50px;
    /* 高度 */
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.3s;
    position: absolute;
    /* 使用绝对定位 */
    top: 20px;
    /* 距离顶部 20px */
    right: 20px;
    /* 距离右侧 20px */
    border-radius: 8px;
    /* 有轻微圆角，当然可以去掉 */
}

/* 箭头符号 */
.arrow-button::after {
    content: "数据标注";
    /* 右箭头符号 */
    font-size: 15px;
    font-style: bold;
}

/* 悬停效果 */
.arrow-button:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

.arrow-button:active {
    transform: scale(1);
}